package at.socialconference.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_login")
public class Login implements Insertable {

	@Id
	@Column(name = "user")
	private String user;

	@Column(name = "pwd")
	private String pwd;

	@Column(name = "userid")
	private Integer userId;

	
	@Column(name = "securitylevel")
	private Integer securityLevel;
	

	public Login() {

	}

	public String getUser() {
		return user;
	}

	public void setUser(String mail) {
		this.user = mail;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public void setUserId(Integer id) {
		this.userId = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setSecurityLevel(Integer securityLevel) {
		this.securityLevel = securityLevel;
	}

	public Integer getSecurityLevel() {
		return securityLevel;
	}

	public Login(at.socialconference.inter.model.Login login, Integer userID, Integer securitylevel) {
		this.setUser(login.getUser());
		this.setPwd(login.getPwd());
		this.setUserId(userID);
		this.setSecurityLevel(securitylevel);
	}

}
